<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<base href="http://localhost/xuebao/" />-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户管理</title>
<link href="templates/admin/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
  {{webcontrol type="menu" name="mymenu"}}
<div>
	<div class="list">
		<div class="title_list_note">用户列表</div>
{{foreach from=$user item=listitem}}
<div class="info">
<ul>
			<li class="list_note">
<div class="title_usernamelist" style="width:120px;">&nbsp;{{$listitem.username}}</div>
{{if 1 == $listitem.sex}}
<div class="title_usernamelist" style="width:40px;">&nbsp;男</div>
{{else}}
<div class="title_usernamelist" style="width:40px;">&nbsp;女</div>
{{/if}}
<span>权限:<a href="{{url controller=role action=editrole user_id=$listitem.user_id}}">编辑权限</a></span>
{{foreach from=$listitem.roles item=item}}
    <div class="title_usernamelist" style="width:60px;">&nbsp;{{$item.rolename}}</div>
{{/foreach}}
<div class="title_usereditlist">&nbsp;<a href="{{url controller=user action=edituser user_id=$listitem.user_id}}">编辑</a>&nbsp;<a href="{{url controller=user action=deluser user_id=$listitem.user_id}}">删除</a></div>
</li>
</ul>
</div>
{{/foreach}}
</div>
</div>
</body>
</html>
